package com.wsx.sky.gateway.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author wangshuaixin
 * @Title: com.wsx.sky.gateway.utils.DateUtils
 * @Description: TODO
 * @date 2019/01/23
 */
public class DateUtils {


    private static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";


    public static String getNowDate() {
        Date date = new Date();
        int num = RandomUtils.getRandom();
        long time = date.getTime() + num;
        try {
            Thread.sleep(10);
        } catch (Exception e) {
            e.printStackTrace();
        }
        SimpleDateFormat format = new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS);
        return format.format(new Date(time));
    }
}
